

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>Case 3 - mixed configuration &mdash; KNX IoT  documentation</title>
  

  
  <link rel="stylesheet" href="../../_static/css/nordic.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/css/nordic.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/tabs.css" type="text/css" />

  
  

  
  

  

  
  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
        <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
        <script src="../../_static/jquery.js"></script>
        <script src="../../_static/underscore.js"></script>
        <script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
        <script src="../../_static/doctools.js"></script>
        <script src="../../_static/sphinx_highlight.js"></script>
    
    <script type="text/javascript" src="../../_static/js/theme.js"></script>

    
  <script type="text/javascript" src="../../_static/js/ncs.js"></script>

    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="next" title="Release notes" href="../../knxiot_release_notes.html" />
    <link rel="prev" title="Case 2 - one button mapped to one LED" href="case_2.html" />
  <link rel="shortcut icon" href="../../_static/images/favicon.ico"/>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="../../index.html" class="icon icon-home"> KNX IoT
          

          
          </a>

          
            
            
          

          
<div id="searchbox" role="search">
  <div class="searchformwrapper">
    <form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
      <input type="text" name="q" placeholder="Search docs" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
  </div>
</div>
<script>$('#searchbox').show(0);</script>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption" role="heading"><span class="caption-text">Subpages:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../about_knxiot.html">About KNX IoT Point API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../environment_setup.html">Requirements and setup</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../samples.html">Samples</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../samples_list.html">Samples building and running</a></li>
<li class="toctree-l2"><a class="reference internal" href="../nordic_knxiot_cli.html">KNX IoT Point API stack configuration</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../knxiot_testing.html">KNX IoT testing</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="../knxiot_testing.html#starting-thread-network">Starting Thread network</a></li>
<li class="toctree-l3"><a class="reference internal" href="../knxiot_testing.html#connecting-light-switch-sensor-to-light-switch-actuator">Connecting Light Switch Sensor to Light Switch Actuator</a></li>
<li class="toctree-l3"><a class="reference internal" href="../knxiot_testing.html#location-of-leds-and-buttons">Location of LEDs and buttons</a></li>
<li class="toctree-l3"><a class="reference internal" href="../knxiot_testing.html#sniffing-knx-iot-point-api-communication">Sniffing KNX IoT Point API communication</a></li>
<li class="toctree-l3 current"><a class="reference internal" href="../knxiot_testing.html#sample-cases">Sample cases</a><ul class="current">
<li class="toctree-l4"><a class="reference internal" href="case_1.html">Case 1 - one button mapped to four LEDs</a></li>
<li class="toctree-l4"><a class="reference internal" href="case_2.html">Case 2 - one button mapped to one LED</a></li>
<li class="toctree-l4 current"><a class="current reference internal" href="#">Case 3 - mixed configuration</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../knxiot_release_notes.html">Release notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../knxiot_known_issues.html">Known issues</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../additional_resources.html">Additional resources</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../index.html">KNX IoT</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../index.html" class="icon icon-home"></a> &raquo;</li>
        
          <li><a href="../samples.html">Samples</a> &raquo;</li>
        
          <li><a href="../knxiot_testing.html">KNX IoT testing</a> &raquo;</li>
        
      <li>Case 3 - mixed configuration</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../../_sources/testing_samples/testing_cases/case_3.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="case-3-mixed-configuration">
<span id="case-3"></span><h1>Case 3 - mixed configuration<a class="headerlink" href="#case-3-mixed-configuration" title="Permalink to this heading">¶</a></h1>
<p>Having Thread network configured and operational, you can start KNX IoT device configuration and testing.
One device must be configured as an Actuator and one as a Sensor.</p>
<p>Perform configuration/mapping of buttons built in to KNX IoT sensor to control LEDs built in to the KNX IoT Actuator - one button to multiple LEDs.
It is achieved by setting KNX Actuator <a class="reference external" href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK">nRF52840 DK</a> to receive events from multple groups.</p>
<ol class="arabic">
<li><p>Configure Actuator device by adding entries to Actuator’s Group Object Table.</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">uart:~$ </span>knx<span class="w"> </span>got<span class="w"> </span>add<span class="w"> </span><span class="m">1</span><span class="w"> </span>/p/1<span class="w"> </span><span class="m">22</span><span class="w"> </span><span class="o">[</span><span class="m">1</span>,2,3,4<span class="o">]</span>
<span class="gp">uart:~$ </span>knx<span class="w"> </span>got<span class="w"> </span>add<span class="w"> </span><span class="m">2</span><span class="w"> </span>/p/2<span class="w"> </span><span class="m">22</span><span class="w"> </span><span class="o">[</span><span class="m">2</span>,3,4<span class="o">]</span>
<span class="gp">uart:~$ </span>knx<span class="w"> </span>got<span class="w"> </span>add<span class="w"> </span><span class="m">3</span><span class="w"> </span>/p/3<span class="w"> </span><span class="m">22</span><span class="w"> </span><span class="o">[</span><span class="m">3</span>,4<span class="o">]</span>
<span class="gp">uart:~$ </span>knx<span class="w"> </span>got<span class="w"> </span>add<span class="w"> </span><span class="m">4</span><span class="w"> </span>/p/4<span class="w"> </span><span class="m">22</span><span class="w"> </span><span class="o">[</span><span class="m">4</span><span class="o">]</span>
</pre></div>
</div>
</li>
<li><p>Set a device installation identifier and a device individual address for the Actuator device.</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">uart:~$ </span>knx<span class="w"> </span>dev<span class="w"> </span>iid<span class="w"> </span><span class="m">1</span>
<span class="gp">uart:~$ </span>knx<span class="w"> </span>dev<span class="w"> </span>ia<span class="w"> </span><span class="m">1</span>
</pre></div>
</div>
</li>
<li><p>Configure Sensor device by adding entries to Sensor’s Group Object Table.</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">uart:~$ </span>knx<span class="w"> </span>got<span class="w"> </span>add<span class="w"> </span><span class="m">1</span><span class="w"> </span>/p/1<span class="w"> </span><span class="m">22</span><span class="w"> </span><span class="o">[</span><span class="m">1</span><span class="o">]</span>
<span class="gp">uart:~$ </span>knx<span class="w"> </span>got<span class="w"> </span>add<span class="w"> </span><span class="m">2</span><span class="w"> </span>/p/2<span class="w"> </span><span class="m">22</span><span class="w"> </span><span class="o">[</span><span class="m">2</span><span class="o">]</span>
<span class="gp">uart:~$ </span>knx<span class="w"> </span>got<span class="w"> </span>add<span class="w"> </span><span class="m">3</span><span class="w"> </span>/p/3<span class="w"> </span><span class="m">22</span><span class="w"> </span><span class="o">[</span><span class="m">3</span><span class="o">]</span>
<span class="gp">uart:~$ </span>knx<span class="w"> </span>got<span class="w"> </span>add<span class="w"> </span><span class="m">4</span><span class="w"> </span>/p/4<span class="w"> </span><span class="m">22</span><span class="w"> </span><span class="o">[</span><span class="m">4</span><span class="o">]</span>
</pre></div>
</div>
</li>
<li><p>Set a device installation identifier and a device individual address for the Sensor device.</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">uart:~$ </span>knx<span class="w"> </span>dev<span class="w"> </span>iid<span class="w"> </span><span class="m">1</span>
<span class="gp">uart:~$ </span>knx<span class="w"> </span>dev<span class="w"> </span>ia<span class="w"> </span><span class="m">2</span>
</pre></div>
</div>
</li>
<li><p>Devices are configured. Use one of the Sensor’s buttons to control one or many of the assigned Actuator’s LEDs.
The interconnections between buttons and LEDs are presented in the following table:</p>
<table class="docutils align-default">
<colgroup>
<col style="width: 40%" />
<col style="width: 60%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Control button
(Sensor)</p></th>
<th class="head"><p>Controlled LEDs
(Actuator)</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>BUTTON1</p></td>
<td><p>LED1</p></td>
</tr>
<tr class="row-odd"><td><p>BUTTON2</p></td>
<td><p>LED1, LED2</p></td>
</tr>
<tr class="row-even"><td><p>BUTTON3</p></td>
<td><p>LED1, LED2, LED3</p></td>
</tr>
<tr class="row-odd"><td><p>BUTTON4</p></td>
<td><p>LED1, LED2, LED3, LED4</p></td>
</tr>
</tbody>
</table>
</li>
</ol>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="../../knxiot_release_notes.html" class="btn btn-neutral float-right" title="Release notes" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="case_2.html" class="btn btn-neutral" title="Case 2 - one button mapped to one LED" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">

<table>
<tr>
<td>
    <p>
        &copy; Copyright 2023, Nordic Semiconductor.

    </p>
</td>
<td id="nordiclogo">
  <a href="https://www.nordicsemi.com/"><img src="../../_static/images/nordic.svg" border="0"/></a>
</td>
</tr>
</table>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 


</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>